<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>爱心捐助</title>
	<script type="text/javascript">
function isalipay() {
var ua = window.navigator.userAgent.toLowerCase();
if(ua.indexOf('windows') != -1){
	return false;
}
if (ua.match(/AlipayClient/i) == 'alipayclient') {
return true;
} else {
return false;
}
}
function isWeiXin() {

var ua = window.navigator.userAgent.toLowerCase();
if(ua.indexOf('windows') != -1){
	return false;
}
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
return true;
} else {
return false;
}
}

if (isalipay()) {
	
	window.open("alicallback.html");
}
if (isWeiXin()) {
	window.open("wxcallback.html");
}
	</script>
	<style type="text/css">
		body{
			text-align: center;
			position: absolute;
			top:22%;
			left: 40%;
		}
		button{
			width: 320px;
			height: 60px;
			font-size: 32px;
			color: white;
			border: 1px solid white;
		}
		p{
			font-size: 22px;
			color: rgb(255,106,1);
		}
	</style>

</head>

<body>
	<h1>爱心捐助</h1>
<button style="background-color: rgb(13,204,10);" onclick="window.open('wxcallback.html');">微信</button>
<br><br><br>
<button style="background-color: rgb(21,120,253);" onclick="window.open('alicallback.html');">支付宝</button>

<p> 感谢大神捐赠 </p>
</body>
<script type="text/javascript">
	if(navigator.userAgent.indexOf('Win')==-1){
		document.body.style.left="0px";
	}
</script>
</html>